package com.yl.principles.demo5;


/**
 * @Author 小羊
 * @Date 29/10/2024下午 4:53
 * @ClassName Client
 * @Description 测试类
 */
public class Client {
    public static void main(String[] args) {
        //创建经纪人类
        Agent agent = new Agent();
        //创建明星对象
        Star star = new Star("1");
        agent.setStar(star);
        //创建粉丝对象
        Fans fans = new Fans("李四");
        agent.setFans(fans);
        //创建媒体对象
        Company company = new Company("媒体");
        agent.setCompany(company);

        agent.meeting();//和粉丝见面
        agent.business();//和媒体公司洽谈

    }

}
